From: Rosen Penev Date: Sat, 12 Jul 2025 03:21:11 +0000 (-0700) Subject: cmdpad: fix compilation with GCC 15 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=bd5bc2f1b4c03e0a4fea4247e518250e38d53130;p=feed%2Fpackages.git cmdpad: fix compilation with GCC 15 There's no parameter to this function. Signed-off-by: Rosen Penev --- diff --git a/utils/cmdpad/Makefile b/utils/cmdpad/Makefile index 5be2f01bb5..8ab25530da 100644 --- a/utils/cmdpad/Makefile +++ b/utils/cmdpad/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=cmdpad PKG_VERSION:=0.0.3 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=@SF/cmdpad diff --git a/utils/cmdpad/patches/010-gcc15.patch b/utils/cmdpad/patches/010-gcc15.patch new file mode 100644 index 0000000000..ce83d7ec91 --- /dev/null +++ b/utils/cmdpad/patches/010-gcc15.patch @@ -0,0 +1,11 @@ +--- a/src/command.c ++++ b/src/command.c +@@ -160,7 +160,7 @@ int addCommand( char * command, unsigned + struct CMD * tmp ; + int count ; + +- count = getNumberofEntry( cmd) ; ++ count = getNumberofEntry() ; + if( count >= 0) { + cmd = (struct CMD *) realloc( cmd, + (count+2)*sizeof( struct CMD)) ;